﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMvc.Models.Sala>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Crear Sala
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Crear Sala</h2>
    <% using (Html.BeginForm("Crear", "Salas")) { %>
        <fieldset>
            <legend>Datos de la Sala</legend>
            
            <div>Ticket: <b><%= Request.QueryString["ticketID"] %></b></div>
            <div>Nombre: <%= Html.TextBoxFor(m => m.Nombre) %></div>
            <div>Comentario: <%= Html.TextAreaFor(m => m.Comentario)%></div>
            <div>Tipo: <%= Html.DropDownListFor(m => m.Tipo,
                           new List<SelectListItem>
                           {
                               new SelectListItem { Text = "Conferencia", Value = "1" },
                               new SelectListItem { Text = "Audiencia", Value = "2" },
                               new SelectListItem { Text = "Restringida", Value = "3" },
                               new SelectListItem { Text = "Entrevista", Value = "4" }
                           })%>
            </div>
            <div>Cant. Participantes: <%= Html.TextBoxFor(m => m.CantidadParticipantes)%></div>
            <div>Publica: <%= Html.CheckBoxFor(m => m.EsPublica)%></div>
            <div>Para Citarse: <%= Html.CheckBoxFor(m => m.ParaCitarse)%></div>
            <div>Para Demo: <%= Html.CheckBoxFor(m => m.ParaDemo)%> Duración Demo: <%= Html.TextBoxFor(m => m.DuracionDemo) %></div>
            <div>Moderada: <%= Html.CheckBoxFor(m => m.SalaModerada)%></div>
            
            <input type="submit" value="Crear"/>
            <a href="javascript:history.back();">Volver</a>
        </fieldset>
    <% } %>
</asp:Content>
